-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Require action types to be strings #4544
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 2952422:
|
✅ Deploy Preview for redux-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Heh, technically the docs update will apply now, but hey, why not :) |
yeah, technically there's no harm in the docs saying that action types must be strings early 😄 |
name: 🐛 Bug fix or new feature
about: Require action types to be strings
PR Type
Does this PR add a new feature, or fix a bug?
It prevents passing non-string action types to store.
Why should this PR be included?
Per #4129 (comment) :
Checklist
action.type
must be a string #4543Bug Fixes
What is the current behavior, and the steps to reproduce the issue?
Non-string action types are allowed to be dispatched to store.
What is the expected behavior?
Action types should be enforced as string
How does this PR fix the problem?
Store throws an error if action type is not string.